.class Lcom/waiqin365/lightapp/chexiao/fr;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v5, 0x4

    const/4 v2, 0x0

    const/16 v4, 0x8

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/visit/a/a/al;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    const v3, 0x7f0806f1

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->getString(I)Ljava/lang/String;

    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->c:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->c:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->c:Ljava/lang/String;

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/a/al;->b()Z

    move-result v1

    if-eqz v1, :cond_6

    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->b:Ljava/lang/String;

    if-eqz v1, :cond_5

    const-string/jumbo v1, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->b:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->d:Ljava/util/ArrayList;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->a(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_4

    move v1, v2

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->k:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    :goto_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->c(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->k:Ljava/lang/String;

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/offlinedata/d;->c(Ljava/lang/String;)Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v3

    if-eqz v3, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iget-object v0, v0, Lcom/waiqin365/lightapp/visit/b/bd;->o:Ljava/lang/String;

    iput-object v0, v3, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bd;

    iput-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bd;->O:Lcom/waiqin365/lightapp/kehu/b/am;

    goto :goto_2

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->d(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/chexiao/a/x;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/a/x;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->d(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/chexiao/a/x;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/a/x;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->e(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->f(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->g(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->f(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->e(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->g(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_5
    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->f(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->e(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->g(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->a:I

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    goto/16 :goto_0

    :cond_6
    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->f(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->e(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->g(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/fr;->a:Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/visit/a/a/al;->a:I

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x2bd
        :pswitch_0
    .end packed-switch
.end method
